﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QD.SQLHelper
{
    public class SysColumns
    {
        /// <summary>
        /// 列名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 类型名
        /// </summary>
        public string typename { get; set; }
        /// <summary>
        /// 最大长度
        /// </summary>
        public Int16 max_length { get; set; }
        /// <summary>
        /// 精度
        /// </summary>
        public byte precision { get; set; }
        /// <summary>
        /// 小数位
        /// </summary>
        public byte scale { get; set; }
        /// <summary>
        /// 是否计算列
        /// </summary>
        public bool is_computed { get; set; }
        /// <summary>
        /// 计算列表达式
        /// </summary>
        public string computedes { get; set; }
        /// <summary>
        /// 计算列是否为持久列
        /// </summary>
        public bool? is_persisted { get; set; }
        /// <summary>
        /// 是否允许为空
        /// </summary>
        public bool is_nullable { get; set; }
        /// <summary>
        /// 是否自增列
        /// </summary>
        public bool is_identity { get; set; }
        /// <summary>
        /// 默认约束名称
        /// </summary>
        public string defaultName { get; set; }
        /// <summary>
        /// 默认值表达式
        /// </summary>
        public string definition { get; set; }
    }
}
